/**
 * 
 */
package uiLayer;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.JToggleButton;

import uiLayer.uiTrailer.TrailerCard1;
import uiLayer.uiUtilities.MenuPanel;
import uiLayer.uiUtilities.UnderConstructionCard;

/**
 * @author Mie
 *
 */
public class UiTrailer {
	private final static String CARD1 = "trailerCard1";
	private final static String CARD2 = "trailerCard2";
	private MenuPanel menu;
	private final static TrailerCard1 card1 = new TrailerCard1();
	private final static UnderConstructionCard card2 = new UnderConstructionCard();

	/**
	 * 
	 */
	public UiTrailer() {
		menu = new MenuPanel();
	}


	/**
	 * @return the menu
	 */
	public MenuPanel getMenu(JPanel cardContainer) {
		JToggleButton btn1 = menu.addButton(CARD1, cardContainer, "Her oprettes nye trailere");
		btn1.setText("Opret ny");
		btn1.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
			}
		});
		JToggleButton btn2 = menu.addButton(CARD2, cardContainer, "Find oprettede trailer");
		btn2.setText("Find oprettede");

		return menu;
	}

	/**
	 * @return card1
	 */
	public static TrailerCard1 getCard1() {
		return card1;
	}

	/**
	 * @return card2
	 */
	public static UnderConstructionCard getCard2() {
		return card2;
	}

	/**
	 * @return the final static string for card1
	 */
	public static String getCard1String() {
		return CARD1;
	}

	/**
	 * @return the final static string for card2
	 */
	public static String getCard2String() {
		return CARD2;
	}
	
	/*
	 Cancel trailer creation
	public static TrailerCard1 cancelCard1(){
		return 
	}
	*/
}